<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .qwe{
            background-color: black;
            width: 500px;
            height: 500px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .asd{
            display: flex;
            flex-direction: row;
            gap:5px;
        }
        .div1{
            width: 80px;
            height: 80px;
            background-color: blue;
            border-radius: 50%;
            transition: all 0.5s;
        }
        .asd:hover .y1{
            background-color: red;
            transform: translateY(-50px);
        }
        .asd:hover .y2{
            background-color: red;
            transform: translateY(-50px);
            transition-delay: 0.1s;
        }
        .asd:hover .y3{
            background-color: red;
            transform: translateY(-50px);
            transition-delay: 0.2s;
        }
    </style>
</head>

<body>
    <div class="qwe">
        <div class="asd">
            <div class="div1 y1"></div>
            <div class="div1 y2"></div>
            <div class="div1 y3"></div>
        </div>
    </div>
</body>

</html>